package com.secsbrain.development.biz.constant;


/**
 * Created by yangyang.zhang on 2017/6/21.
 */
public enum PublishProjectStatus {
    NEW("等待审核"), REJECTED("审核拒绝"), SUCCESS("执行成功"), PROCESSING("执行中"), PASS("审核通过"), FINISHED("执行完成"), FAILURE("执行失败");
    private String description;

    PublishProjectStatus(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public boolean executable() {
        return this.ordinal() >= PASS.ordinal();
    }
}
